package com.aloha.springframework.test.circle;

import com.aloha.springframework.beans.factory.annotation.Autowired;
import com.aloha.springframework.stereotype.Component;

/**
 * @author DaiZhiHeng
 * @date 2023/7/10 9:09
 */
@Component
public class B {

    @Autowired
    private A a;

    public void testB() {
        System.out.println("B类方法执行");
    }

    public void doTestA() {
        a.testA();
    }

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }
}
